<?php
declare(strict_types=1);

namespace Core\HyperfUnit;

class Mime extends \Zms\Mime\Mime
{

    /**
     * 获取文件mime类型
     * @param array $extentions
     * @return array
     */
    public static function getMimes(array $extentions): array
    {
        $mimes = [];
        foreach ($extentions as $extention) {
            $mimes[] = self::getMime($extention);
        }
        return $mimes;
    }
}